package com.rfsp.common.service;

import com.rfsp.common.pojo.vo.AreaVO;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
public class CacheService {

    @Cacheable(value = "app_cache")
    public AreaVO get(String key){
        System.out.println("第一次执行进行缓存.....后续执行不打印此语句");
        return new AreaVO("000000", "全国");
    }
}
